package com.service;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.OwnerMapper;
import com.entity.Owner;
@Service
public class OwnerService {
	@Resource
	OwnerMapper ownerMapper;
	
	public List<Owner> selectAll(){
		return ownerMapper.selectAll();
	}
	public int insert(Owner owner){
		return ownerMapper.insert(owner);
	}
	public Owner selectPhone(Map<String,Object>parms){
		return ownerMapper.selectPhone(parms);
	}
	public Owner selectUploadfiles(String  ynumber){
		return ownerMapper.selectUploadfiles(ynumber);
	}	
	
	public Owner selectByPrimaryKey(String ynumber){
		return ownerMapper.selectByPrimaryKey(ynumber);
	}
	
	public Owner selectOpenid(Map<String,Object>parms){
		return ownerMapper.selectOpenid(parms);
	}
	
	public void insertPhone(Map<String,Object>parms){
		ownerMapper.insertPhone(parms);
	}
	public Owner selectPhoneString(String str){
		return ownerMapper.selectPhoneString(str);
	}
}


